<template>
  <div>

    <LazyLoadTab v-model="activeName" :tabMenus="menus"></LazyLoadTab>

      <!-- <el-button @click="closeDrawer(2)" type="primary" :disabled='isOpen'>驳回</el-button>
      <el-button @click="closeDrawer(3)" type="primary" :disabled='isOpen'>通过</el-button> -->
    </div>
  </div>
</template>
<script>
export default {
  data(){
    return{
      json:{},
      activeName: '补充信息(新能源SAP)',
      isOpen:true,
      menus: [
        {
          title: '补充信息(新能源SAP)',
          path: 'origin/originInfo/sapDetail/sapAdd',
          params:{
            data:{},
          },
          on: {
            'close': this.closeDrawer
          }

        },
        {
          title: '基础信息',
          path: 'origin/originInfo/sapDetail/detail',
          params:{
            data:{}
          },
          on: {
            'close': this.closeDrawer
          }
        },

      ]
    }
  },
  components:{
  },
  props:['rowData'],
  created(){
    this.menus.map(x=>{
        x.params.data=this.rowData
      })
  },
  methods:{


    closeDrawer(val){
      if(val){
        this.$emit('close',val)
      }else{
        this.$emit('close')
      }

    }
  }
}
</script>
